.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 24px;
  overflow-x: auto; /* 新增：允许横向滚动 */
  overflow-y: hidden; /* 新增：隐藏垂直滚动条 */
}

.tabList {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap; /* 新增：防止子元素换行 */
  min-width: 100%; /* 新增：确保容器宽度至少为内容宽度 */
}

/* 新增：美化滚动条样式 */
.nav::-webkit-scrollbar {
  height: 4px;
}

.nav::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.nav::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.nav::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.tabItem {
  margin-right: 16px;
}

.tabLink {
  display: inline-block;
  padding: 16px 8px;
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  position: relative;

  &:hover {
    color: #1890ff;
  }
}

.active {
  color: #1890ff;
  font-weight: 500;
  border-bottom-color: #1890ff;

  &::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1890ff;
  }
}

.content {
  flex: 1;
  padding: 24px;
}

.navs {
  ul {
    padding: 0;
    list-style: none;
    display: flex;
  }
  li {
    margin-right: 1em;
  }
}
